package com.huawei.appmarket.service.usercenter.personal.view.card;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import o.cgz;
import o.evf;
import o.fle;

public class BasePersonalCard extends cgz {
    public BasePersonalCard(Context context) {
        super(context);
    }

    protected void ˋ() {
    }

    protected void ˊ() {
    }

    public void ˏ(View view, int i) {
        if (view != null) {
            Activity activity = (Activity) view.getContext();
            if (evf.ˊ(view)) {
                ((fle) activity).ˊ(view, "background", i);
            } else {
                view.setBackground(activity.getResources().getDrawable(i));
            }
        }
    }
}
